package com.jxl.application.controller.convert;

import com.jxl.domain.entity.AuthUserBO;
import com.jxl.dto.AuthUserDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserDtoConvert {

    AuthUserDtoConvert INSTANCE = Mappers.getMapper(AuthUserDtoConvert.class);

    /**
     * 类型转换
     * @param authUserDto
     * @return
     */
    AuthUserBO convertDtoToAuthUserBO(AuthUserDto authUserDto);

    /**
     * 类型转换
     * @param authUserBO
     * @return
     */
    AuthUserDto convertBOToAuthUserDto(AuthUserBO authUserBO);

    /**
     * 集合类型转换
     * @param authUserDtos
     * @return
     */
    List<AuthUserBO> convertDtoToAuthUserBOList(List<AuthUserDto> authUserDtos);
}
